package com.example.server.controller;

import com.example.server.service.HelloWorldClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author baiguoqiang
 * @Date 2024/9/14 11:47
 * @ClassName: HelloWorldController
 * @Version 1.0
 * @Description:
 */
@RestController
public class HelloWorldController {


    @Autowired
    HelloWorldClient helloWorldClient;


    @GetMapping(value = "/hw")
    public String helloWorld(String name) {

        return helloWorldClient.sayHello(name);

    }

}
